package com.blb.service;


import com.blb.pojo.Pet;

import java.sql.SQLException;

import com.blb.pojo.Page;
import com.blb.pojo.Pet;

import java.util.List;

public interface IPetService {

    //寵物更新
    void  update(Pet pet) throws SQLException, ClassNotFoundException;

    //宠物更新页面
    Pet updatePage(int id) throws Exception;

    //根据id删除
    void delete(int id) throws SQLException, ClassNotFoundException, SQLException, SQLException;
    // 显示页面
    Page<Pet> selectPageByName(String name, int size, int page) throws Exception;


    /**
     * 新增
     *
     * @param pet
     * @throws Exception
     */
    void add(Pet pet) throws Exception;
}
